<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../../favicon.ico">

    <title>MUSIC</title>

    <!-- Bootstrap core CSS -->
    <link href="assets/css/bootstrap.min.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="assets/css/offcanvas.css" rel="stylesheet">
    <link href="assets/css/style.css" rel="stylesheet">
    <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
    <!--[if lt IE 9]>
    <script src="assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
    <script src="assets/js/ie-emulation-modes-warning.js"></script>

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
    <script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>

<body>
<?php 

 ?>
<nav class="navbar navbar-fixed-top navbar-inverse">
  <div class="container-fluid">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
     
    </div>

    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
    <ul class="nav navbar-nav">


       
       <ul class="nav navbar-nav">
        <li><a href="index.php">首页</a></li>
        <?php

          foreach ($data['goods11'] as $row)
        {
        ?>
        <li><a href="index.php?c=index&m=lists&tid=<?php
        echo $row["tid"];
        ?>
        "><?php
        echo $row["typename"];
        ?>
        </a></li>
        <?php
          }
        ?>
        </ul>
    </ul>

        <form action="search.php"class="navbar-form navbar-left" role="search" >
        <div class="form-group">
 
        <input type="text" class="form-control" name="goodsname" placeholder="Search">
        </div>

        <button type="submit" class="btn btn-default">搜索</button>
        </form>

        <ul class="nav navbar-nav navbar-right">
        <li class="active"><a href="">欢迎<?php
        session_start();
        if(isset($_SESSION["user"]))
        echo " ".$_SESSION["user"]." ";
        else{

        echo "您";
        }
        ?>访问本网站</a>
        </li>

        <?php
        //登录成功才显示
        if(isset($_SESSION["user"]))
        {
        ?>
        <li><a href="logout.php">注销</a></li>
        <li class="dropdown">
        <a
        href="#"
        class="dropdown-toggle"
        data-toggle="dropdown"
        role="button"
        aria-haspopup="true" aria-expanded="false">个人中心  <span class="caret"></span></a>
        <ul class="dropdown-menu">
        <li><a href="#" data-toggle="modal" data-target="#changePassword">修改个人密
        码</a></li>
        <li><a href="#" data-toggle="modal"  data-target="#changeInfor">修改个人信息
        </a></li>
        <li><a href="myCommentList.php" >我的评价</a></li>
        </ul>
        </li>
        
        <?php
        }else{
        ?>
   
        <li><a href="#" data-toggle="modal" data-target="#login">登录</a></li>
        <li><a href="#" data-toggle="modal" data-target="#reg">注册</a></li>
        <?php
        }
        ?>
        </ul>

          
      
    
     
    </div><!-- /.navbar-collapse -->
  </div><!-- /.container-fluid -->
</nav>

<!-- /.navbar -->

<?php 
   
    
       $row = $data['goods10'];
       $gid=$_GET['gid'];

     
       $goodsname=$row['goodsname'];
       $tid=$row['tid'];  
       $brand=$row['brand'];
       $intro=$row['intro'];
       $place=$row['place'];
       $adddate=$row['adddate'];
       $pic='images/'.$row['pic'];
        // var_dump($row);
           
    //将查询结果显示在表单中
 ?>
       <div class="container" style="background-color:white">
 <br/>
 <br/>
 

<div class="col-md-4 text-center">
<img src="images/<?php echo $row["pic"];?>" width="200" height="250">

</div>

<div class="col-md-6 text-center">
<table class="table">
<tr>
<td>专栏</td>
<td>
<?php echo $row["tid"];?>
</td>
</tr>
<tr>
<td>音乐名称</td>
<td><?php echo $row["goodsname"];?>
</td>

</tr>
<tr>
<td>歌手</td>
<td><?php echo $row["brand"];;?>
</td>
</tr>
<tr>
<td>音乐介绍</td>
<td><?php echo $row["intro"];;?>

</tr>
<tr>
<td>专辑</td>
<td> <?php echo $row["place"];
?>
</td>
</tr>

<tr>
<td>音乐添加日期</td>
<td> <?php echo $row["adddate"];
?>
</td>
</tr>

</table>
</div>

</div>


<!--/.container-->
<hr>

    <footer>
        <p>&copy; music 2016</p>
    </footer>

<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>

<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="assets/js/ie10-viewport-bug-workaround.js"></script>

<script src="offcanvas.js"></script>
<!-- Script to Activate the Carousel -->
<script>
    $('.carousel').carousel({
        interval: 3000 //changes the speed
    })
</script>
</body>
</html>
